package day2.cases

import scala.util.Random

object CaseDemo01 extends App {
  /**
    * 1)根据具体的值 匹配 可以匹配字符串
    */
  val arr = Array("Hadoop", "HBase", "Spark")
  val name = arr(Random.nextInt(arr.length))


  name match {
    case "Hadoop" => println("哈肚普...")
    case "HBase" => println("H贝斯...")
    case _ => println("真不知道你们在说什么...")
  }




}
